package gift4friend.server.core;

import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManagerFactory;


public class JDOCreator {

	private static PersistenceManagerFactory pmfInstance = JDOHelper.getPersistenceManagerFactory("transactions-optional");
	
	private static JDOCreator instance = new JDOCreator();

	
	public static PersistenceManagerFactory getPmfInstance() {
		return pmfInstance;
	}

	public static void setPmfInstance(PersistenceManagerFactory pmfInstance) {
		JDOCreator.pmfInstance = pmfInstance;
	}

	
	private JDOCreator()
	{
	}
	
	public static JDOCreator GetInstance(){
		return instance;
	}
	
	
}
